package org.west.sky.frame.activiti.study.chapter18.demo0101;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.ExecutionListener;
import org.activiti.engine.delegate.Expression;

/**
 * author: chz
 * date: 2025/8/29
 * description:
 */
public class UserTaskExecutionListener implements ExecutionListener {

    private Expression fixedValue;

    private Expression dynamicValue;

    @Override
    public void notify(DelegateExecution execution) {
        System.out.println("====进入用户任务监听器：" + fixedValue.getValue(execution) + "," + dynamicValue.getValue(execution));
        System.out.println("====ProcessInstanceId: " + execution.getProcessInstanceId() + " eventName: " + execution.getEventName());
    }
}
